package com.google.code.scalaxmljaxen.lcj

class IteratorWrapper[T](underlying: Iterator[T]) extends java.util.Iterator[T] {
  override def next() = underlying.next()
  override def hasNext = underlying.hasNext
  override def remove() = throw new java.util.NoSuchElementException
}

object IteratorWrapper {
  def empty[T] = new IteratorWrapper[T](Iterator.empty)
}

// vim: set ts=2 sw=2 et:
